﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace UHUBLL
{
    public class CommonBLL
    {
        public static void SetCookies(string cookieName, object cookieValue, int expriesHours)
        {
            HttpContext.Current.Response.Cookies[cookieName].Value = cookieValue.ToString();
            HttpContext.Current.Response.Cookies[cookieName].Expires = DateTime.Now.AddHours(expriesHours);
            HttpContext.Current.Response.Cookies[cookieName].Domain = Maticsoft.Common.ConfigHelper.GetConfigString("SiteDomain");
        }
    }
}
